{% extends 'app01/base.html' %}
{% block active_new_page %}{% endblock %}
{% block active_flow_case %}class="active"{% endblock %}
{% block active_case_manage %}{% endblock %}
{% block sub_header %}场景用例管理{% endblock %}
{% block back_url %}{% url 'flowCase:flow_case' %}{% endblock %}
{% block search_url %}{% url 'flowCase:flow_case_search' %}{% endblock %}
{% block not_in_index %}
    <button type="button" data-toggle="modal" data-target="#importModal"
            class="btn btn-primary">导入X-Mind测试大纲
    </button>
{% endblock %}
{% block project_name %}{{ case.system }}{% endblock %}
{% block case_total %}{% endblock %}
{% block generateModal %}
    <div class="modal fade" id="importModal" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    </button>
                    <h4 class="modal-title" id="myModalLabel">Xmind转测试用例</h4>
                </div>
                <form class="form-inline" action="{% url 'flowCase:upload' %}" method="post"
                      enctype="multipart/form-data">
                    {% csrf_token %}
                    <div class="modal-body">
                        <label for="import_file">导入：</label>
                        <input name="import_file" class="form-control input_for_modal" type="file" id="import_file"
                               required>
                        <a href="{% url 'flowCase:download' 'template.xmind' %}">下载模板</a>
                        <p style="color: orangered">注：请按照模板样式，使用X-Mind编写测试用例大纲，文件后缀为.xmind的文件！</p>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                        </button>
                        <button type="submit" class="btn btn-primary" onclick="return submitJob()">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

{% endblock %}
{% block export_url %}{% url 'flowCase:flow_case_export' %}{% endblock %}
{% block create_case_url %}{% url 'flowCase:flow_case_create' %}{% endblock %}
{% block page_url %}{% url 'flowCase:flow_case' %}{% endblock %}
{% block page_url_1 %}{% url 'flowCase:flow_case' %}{% endblock %}
{% block page_url_2 %}{% url 'flowCase:flow_case' %}{% endblock %}
{% block page_url_3 %}{% url 'flowCase:flow_case' %}{% endblock %}
{% block first_page %}{% url 'flowCase:flow_case' %}{% endblock %}
{% block last_page %}{% url 'flowCase:flow_case' %}{% endblock %}
{% block edit_url %}{% url 'flowCase:flow_case_edit' %}{% endblock %}
{% block delete_url %}{% url 'flowCase:delete' case.id %}{% endblock %}
{% block edit_modal_case_level %}
    <input name="level" class="form-control input_for_modal level" type="text" id="level">

{% endblock %}